package com.example.wordroom

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "tb_word")
data class Word(
    @ColumnInfo(name = "name") var name: String, // 英文单词
    @ColumnInfo(name = "desc") var desc:String,  // 中文意思
    @ColumnInfo(name = "example") var example:String // 造句
){
    @PrimaryKey(autoGenerate = true)
    var id: Int = 0
}
